// 网格模型材质颜色 Color
import * as THREE from "three";

const geometry = new THREE.PlaneGeometry(100, 100);
const material = new THREE.MeshBasicMaterial({
  color: new THREE.Color("orange"),
  //   wireframe: true,
  side: THREE.DoubleSide,
  transparent: true,
  opacity: 0.5,
});
const mesh = new THREE.Mesh(geometry, material);

console.log(mesh);
const color = mesh.material.color;
console.log(color.getHexString());
console.log(color.getStyle());
color.setStyle("blue");

export default mesh;
